<?php

class TBB_Validate_UniqueRoute extends Zend_Validate_Abstract {
	
    const USERNAME_EXISTS = 'routeExists';

    protected $_messageTemplates = array(
        self::USERNAME_EXISTS => 'Tuyến "%value%" đã tồn tại',
    );

    public function __construct(TBB_Model_Route $routeModel)
    {
        $this->_routeModel = $routeModel;
    }

    public function isValid($value, $context = null)
    {   	
    	$value = ( string ) $value;
		$this->_setValue ( $value );		
		
		// validate here
		$this->_error("something");
	    return false;
    }
}

